Carbon


PBHSetFLockSync

Header: Files.h Carbon status: Supported

Locks a file.

OSErr PBHSetFLockSync (
    HParmBlkPtr paramBlock
);
Parameter descriptions
paramBlock

A pointer to a basic HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

After you lock a file, all new access paths to that file are read-only. Access paths currently in use aren’t affected.

If the PBHGetVolParmsSync function indicates that the volume supports folder locking (that is, the bHasFolderLock bit of the vMAttrib field is set), you can use PBHSetFLockSync to lock a directory.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)